package com.sxbbc.common.core.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sxbbc.common.core.entity.jz.CPushLog;
import com.sxbbc.common.core.mapper.jz.CPushLogMapper;
import com.sxbbc.common.core.service.ICPushLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户推送记录 服务实现类
 * </p>
 *
 * @author leehao
 * @since 2019-05-24
 */
@Service
public class CPushLogServiceImpl extends ServiceImpl<CPushLogMapper, CPushLog> implements ICPushLogService {

    @Override
    public List<CPushLog> queryPushLogByCid(Integer cid, Integer reading) {
        QueryWrapper<CPushLog> wrapper = new QueryWrapper<>();
        wrapper.eq("cid",cid);
        wrapper.eq("reading",reading);
        return super.list(wrapper);
    }
}
